import Layout from '@/layout/index.vue'
import { createNameComponent } from '../createNode'
const route = [
  {
    path: '/task-project',
    component: Layout,
    redirect: '/task-project/table',
    meta: { title: 'Task Project', icon: 'sfont system-home' },
    children: [
      {
        path: 'project',
        component: createNameComponent(() => import('@/views/main/taskProject/index.vue')),
        meta: { title: 'Project', icon: 'sfont system-home', hideClose: true }
      },
      {
        path: 'group',
        component: createNameComponent(() => import('@/views/main/taskGroup/index.vue')),
        meta: { title: 'Group', icon: 'sfont system-home', hideClose: true }
      },
      {
        path: 'task',
        component: createNameComponent(() => import('@/views/main/taskJob/index.vue')),
        meta: { title: 'Task', icon: 'sfont system-home', hideClose: true }
      }
    ]
  }
]

export default route